Maintaining Generalized Arc Consistency on Ad Hoc r-Ary Constraints
نویسندگان
چکیده
In many real-life problems, constraints are explicitly defined as a set of solutions. This ad hoc (table) representation uses exponential memory and makes support checking (for enforcing GAC) difficult. In this paper, we address both problems simultaneously by representing an ad hoc constraint with a multi-valued decision diagram (MDD), a memory efficient data structure that supports fast support search. We explain how to convert a table constraint into an MDD constraint and how to maintain GAC on the MDD constraint. Thanks to a sparse set data structure, our MDD-based GAC algorithm, mddc, achieves full incrementality in constant time. Our experiments on structured problems, car sequencing and still-life, show that mddc is a fast GAC algorithm for ad hoc constraints. It can replace a Boolean sequence constraint [1], and scales up well for structural MDD constraints with 208 variables and 340984 nodes. We also show why it is possible for mddc to be faster than the state-of-the-art generic GAC algorithms in [2–4]. Its efficiency on non-structural ad hoc constraints is justified empirically.
منابع مشابه
Maintaining Generalized Arc Consistency on Ad-Hoc n-Ary Boolean Constraints
Binary decision diagrams (BDDs) can compactly represent ad-hoc nary Boolean constraints. However, there is no generalized arc consistency (GAC) algorithm which exploit BDDs. For example, the global case constraint by SICStus Prolog for ad-hoc constraints is designed for nonBoolean domains. In this paper, we introduce a new GAC algorithm, bddc, for BDD constraints. Our empirical results demonstr...
متن کاملArc Consistency on n-ary Monotonic and Linear Constraints
Many problems and applications can be naturally modelled and solved using constraints with more than two variables Such n ary constraints in particular arithmetic constraints are provided by many nite domain constraint programming systems The best known worst case time complexity of existing algorithms GAC schema for enforcing arc consistency on general CSPs is O ed where d is the size of domai...
متن کاملGeneric Global Constraints based on MDDs
Constraint Programming (CP)[1] has been successfully applied to both constraint satisfaction and constraint optimization problems. A wide variety of specialized global constraints provide critical assistance in achieving a good model that can take advantage of the structure of the problem in the search for a solution. However, a key outstanding issue is the representation of ’ad-hoc’ constraint...
متن کاملExpensive Constraints and Hyperarc-consistency
We present an arc-consistency algorithm NAC4 to account for some types of non-binary constraints. It di ers from the generalized algorithm GAC4 [ Mohr and Masini, 1988 ] as the constraints need not be modeled as explicit relations but can be retained as implicit n-ary relations. The advantage of this algorithm over GAC4 is pronounced when the checking of constraints is expensive. By an ordering...
متن کاملRelational Consistencies
We perform an extensive comparison of relational consistencies along four dimensions: on binary constraints, on non-binary constraints, on encodings of non-binary constraints, and on decomposable non-binary constraints. Our results contain some surprises. For example, on binary constraints, relational path-consistency does not reduce to path-consistency. On non-binary constraints, relational ar...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2008